import request from '@/utils/request';

export const getSuggestsAPI = (keyword: string) => {
  return request({
    url: '/v1_0/suggestion',
    params: {
      q: keyword,
    },
  });
};
type searchparamstype = {
  page?: number;
  per_page?: number;
  keyword: string;
};
export const getsearchlistAPI = ({
  page = 1,
  per_page = 10,
  keyword,
}: searchparamstype) => {
  return request({
    url: '/v1_0/search',
    params: {
      page,
      per_page,
      q: keyword,
    },
  });
};
